/*
 * @Author: gonglf
 * @Date: 2022-07-07 20:04:01
 * @LastEditors: gonglf
 * @LastEditTime: 2022-07-07 20:04:07
 * @Description:一些演示的例子
 *
 */
package tasks

type User struct {
	Id   int
	Name string
}

func Add(a int, b int) int {

	return a + b
}

func AppendUser(user User, ids []int, names []string) []User {
	var r = make([]User, 0)
	r = append(r, user)
	for i := range ids {
		r = append(r, User{
			Id:   ids[i],
			Name: names[i],
		})
	}
	return r
}
